home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 6_functions / remw < prev    next >
Text File  |  2001-03-21  |  661b  |  24 lines

  1. Synopsis:
  2.    $remw(<word> <word list>)
  3.  
  4. Technical:
  5.    This function returns the input list with the first occurrence of the
  6.    given word removed.
  7.  
  8. Practical:
  9.    This function is probably most useful in text parsing within a script.
  10.    Because it only removes the first occurrence of the given word, and not
  11.    all of them, it should probably be used in conjunction with $uniq() to
  12.    be truly effective.
  13.  
  14. Returns:
  15.    input list with first occurrence of given word removed
  16.  
  17. Examples:
  18.    $remw(two one two three)            returns "one three"
  19.    $remw(two one two three two one)    returns "one three two one"
  20.  
  21. See Also:
  22.    remws(6); uniq(6)
  23.  
  24.